<?php
if(!defined('BZ_XTBLOG') || !defined('BZ_WJSCUZ')) {
	exit('Access Denied');
}
$wzxx_title ='查看帖子-'.$wzxx_title.'';
$wzxx_gj    ='查看帖子-'.$wzxx_gj.'';
$wzxx_ms    ='查看帖子-'.$wzxx_ms.'';
if(!$user_uid){
	  $pdid="1";
}else if($_GET['act'] == 'hf'){
   $num_count=$db->num_rows('forum_hui'," `uid` ='$user_uid' ",' distinct fid');
   $list_num ="10";
   $num_start=page_num($list_num,$num_count);
   $sql_bbs  =$db->query('forum_hui'," `uid` ='$user_uid' ORDER BY `id` DESC LIMIT ".$num_start." , ".$list_num." ",' distinct fid ');
   while($row_c=mysql_fetch_array($sql_bbs)){
   	   $row_b=$db->get_one('forum'," `id` ='$row_c[fid]' ",'');
       $name=Bingz_html($row_b['name']);
       $tsj=Bingz_time($row_b['time_a']);
       $hyname=$user_class->user_name($row_b['uid']);
       $hytx  =$user_class->user_tx($row_b['uid']);
       $forum[]= array('hytx' => $hytx,'hyname' => $hyname,'name' => $name,'sj' => $tsj,'cks' => $row_b['cks'],'hfs' => $row_b['hfs'],'id' => $row_b['id']);
   }
   $page=page_link($list_num,$num_count);
   $pdid="2";
}else{
   $num_count=$db->num_rows('forum'," `uid` ='$user_uid' AND `sz_sc` ='0' AND `sz_lm` ='0' ",'id');
   $list_num ="10";
   $num_start=page_num($list_num,$num_count);
   $sql_bbs  =$db->query('forum'," `uid` ='$user_uid' AND `sz_sc` ='0' AND `sz_lm` ='0' ORDER BY `id` DESC LIMIT ".$num_start." , ".$list_num." ",'');
   while($row_b=mysql_fetch_array($sql_bbs)){
       $name=Bingz_html($row_b['name']);
       $tsj=Bingz_time($row_b['time_a']);
       $hyname=$user_class->user_name($row_b['uid']);
       $hytx  =$user_class->user_tx($row_b['uid']);
       $forum[]= array('hytx' => $hytx,'hyname' => $hyname,'name' => $name,'sj' => $tsj,'cks' => $row_b['cks'],'hfs' => $row_b['hfs'],'id' => $row_b['id']);
   }
   $page=page_link($list_num,$num_count);
}
@include template('head');
@include template('user/user_forum');
@include template('foot');
?>